import request from '@/utils/request.js'


export const addApprovalservice = (data) => {  
    return request.post('/addApproval', data);
}
export const deleteApprovalservice = (contractid, userid) => {
    return request.delete(`/deleteApproval?contractid=${contractid}&userid=${userid}`);
}

export const updateApprovalservice = (data) => {
    return request.put('/updateApproval', data)
}
export const getAllApprovalservice = (data) => {
    
    return request.post('/getApproval', data);
}


export const getApprovalByContractIdservice = (data) => {
    
    return request.post('/getApprovalByContractId', data);
}

